#include <board.h>

#define DTCM_BANK_ADDR          (void *)D1_DTCMRAM_BASE
#define DTCM_SIZE               (128 * 1024)

#if defined(RT_USING_MEMHEAP_AS_HEAP)
static struct rt_memheap dtcm_heap;

static int DTCM_Init(void)
{
    rt_memheap_init(&dtcm_heap, "dtcm", DTCM_BANK_ADDR, DTCM_SIZE);

    return RT_EOK;
}
INIT_BOARD_EXPORT(DTCM_Init);
#endif
